package test.controllers;

import java.io.IOException;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.code.lightsomy.annotations.Action;
import com.google.code.lightsomy.annotations.Controller;

@Controller
public class Funky {
	
	@Action
	public void index(HttpServletRequest req, HttpServletResponse res) throws IOException {
		junky(req, res);
	}
	
	@Action
	public void junky(HttpServletRequest req, HttpServletResponse res) throws IOException {
		res.getWriter()
		.append(req.getParameter("controller"))
		.append(req.getParameter("action"))
		.append(req.getParameter("id"))
		.flush();
	}
	
	public void monk(HttpServletRequest req, HttpServletResponse res) {
		
	}
}